package com.work.daily;

import java.util.*;

/**
 * Created by suk on 2020/8/27.
 */
public class D5_FindItinerary_332_01 {
    public static void main(String[] args) {
        D5_FindItinerary_332_01 d5 = new D5_FindItinerary_332_01();
        List<List<String>> tickets = new ArrayList<List<String>>();
        List<String> ticket = null;
        String[][] strs = {{"MUC", "LHR"}, {"JFK","MUC"}, {"SFO","SJC"}, {"LHR","SFO"}};

        for (String[] str : strs) {
            ticket = new ArrayList<>();
            for (String s : str) {
                ticket.add(s);
            }
            tickets.add(ticket);
        }
        System.out.println(tickets);
        d5.findItinerary(tickets);
    }
    public List<String> findItinerary(List<List<String>> tickets) {

        return null;
    }
}
